import {request} from "@/utils/request.js"

export const getAliToken = () => {
  return request("/api/toc/aliyun/dypns/getToken", "get")
};
export const getAliPhone = (data) => {
  return request("/api/toc/aliyun/dypns/getPhoneWithToken", "get",data)
};

export const getWxAccess = (data) => {
  return request("/api/toc/auth/wechat/loginByCode", "post",data)
};

//
// *************以下删除或重构*****************
//


// 微信小程序登录
export const loginWxMa = (data) => {
  // 微信小程序登录接口
  return request("/wxuser/loginmp", "post", data)
};
// 绑定直播间
export const bindLive = (code) => {
  // 微信小程序登录接口
  const url = '/share/bindLive?key='+ code
  return request(url, "get")
};


